<?PHP
  class Icons{
  
  public static function getIcon($name){
    $res = Settings::getInstance()->get("host");
    if(file_exists("../system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png")){
      $res .= "system/skins/".SkinController::getCurrentSkinName()."/icons/".strtolower($name).".png";
    }
    else{
      $res .= "system/images/icons/".Settings::getInstance()->get("iconset")."/".strtolower($name).".png";
    }
    return $res;
  }

}
?>